/* common.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: #0849a3;
    border-bottom: 2px solid #003C88;
}

.header-topbar {
    background-color: #0849a3;
    padding: 8px 0;
}

.header-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    width: 150px;
    height: auto;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.search-box input {
    width: 300px;
    height: 36px;
    padding: 0 15px;
    border: none;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    height: 36px;
    padding: 0 20px;
    background: #e7bd47;
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background: #002a66;
}

/* Quick Links */
.quick-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.quick-links .icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    fill: #fff;
    stroke: none;
}

/* Main Navigation */
.main-nav {
    width: 100%;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-menu .nav-item a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.nav-item:hover > a {
    background-color: #003C88;
}

.nav-item.active > a {
    background-color: #003C88;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 160px;
    background: #0849a3;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    z-index: 1000;
    border: 1px solid #003C88;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: #002a66;
}

/* Footer */
.footer {
    background-color: #003e90;
    color: white;
}

.footer-links {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.link-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.link-group span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.link-group a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.link-group a:last-child {
    border-right: none;
}

.link-group a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom .copyright {
    text-align: center;
    width: 100%;
}

.footer-bottom .copyright p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}
